package design._05_Adapter.class01;
/**
 * Adapter 与 Adapter2的区别
 * @author nrzt
 *
 */
public class Adapter2 extends AbstractAdaptee implements Target {
	//同时维持对抽象目标类和适配者的引用
	private Target target;
	private Adaptee adaptee;
	@Override
	public void moving() {	
		adaptee.moving();
	}

	@Override
	public void say() {
		target.say();
	}

}
